<!DOCTYPE html>
<html lang="en">
<?php
$con =@mysqli_connect("localhost","root","root","educate");
if(!$con){
    exit("<h1>数据库连接失败</h1>");
}

$id = $_GET['idd'];
$sql = "SELECT * FROM sidelist where id =$id";
$result = mysqli_query($con, $sql);
// 第六步：关闭连接
mysqli_close($con);
if ($roww = $result->fetch_assoc()) {
    $source = $roww['class'];
    $con = $roww['con'];
}
// 第五步：释放结果集
mysqli_free_result($result);


// print "成功连接到数据库！";
?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?php echo $roww['name'] ?></title>
    <link rel="stylesheet" type="text/css" href="../../css/Iframe.css">
    <script src="../../js/jquery-1.8.3.min.js" type="text/javascript"></script>
</head>

<body>
<script type="text/javascript">$(document).bind('contextmenu',function() { return false;  }); </script>
<!-- <span class="title"><a href="#">修改</a></span> -->
<div class="gs_name">
    <p><video width="640" controls="">

        <source src="<?php echo $source?>" type="video/mp4">
        您的浏览器不支持视频播放</video>
    </p>
</div>
<?php echo $con?>


</body>
</html>
